package com.hm.model;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

public class User {

	private List<String> books;
	
	public List<String> getBooks() {
		return books;
	}

	public void setBooks(List<String> books) {
		this.books = books;
	}

	private String userName;
	@Pattern(regexp = "\\w{6,15}")
	private String passWord;
	@Min(value=29,message="id不能小于29")
	private Integer userID;
	
	private Date birthday;
	
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public Integer getUseID() {
		return userID;
	}

	public void setUseID(Integer useID) {
		this.userID = useID;
	}
}
